package com.api.util;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtil {
  public static Properties properties = new Properties();
  static {
  loadUrls();
  }

    private static void loadUrls() {
        InputStream inputStream;
        try {
            inputStream = new FileInputStream(new File("src/test/resources/properties/url.properties"));
            properties.load(inputStream);
        } catch (Exception e) {
            e.printStackTrace();
        }

}
 public static String getCaseFilePath(){
     String caseFilePath=properties.getProperty("cases.url");
     return caseFilePath;
 }

    public static String getSign(){
        String sign=properties.getProperty("sign");
        return sign;
    }
    public static String getRootUrl(){
        String rootUrl=properties.getProperty("root.url");
        return rootUrl;
    }




}
